package com.he.hsdyc.designmodule.observer;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

/**
 * 功能描述: 微信用户
 */
@Data
@Slf4j
public class WechatUser implements Observer {

    private String name;

    public WechatUser(String name) {
        log.info("微信用户："+name+"  被创建");
        this.name = name;
    }

    @Override
    public void update(String message) {
        log.info("微信用户："+name+"  接收到推送消息:"+message);
    }
}
